# Read me file:
# Replication Materials for Thomas Bernauer and Liam F. McGrath (2016) 
# "Simple reframing unlikely to boost public support for climate policy"
# Nature Climate Change

Note that this version corresponds to the correction involving miscategorised respondents.

This read me file documents the replication materials for the aforementioned
paper. This document goes folder by folder describing the files located
within.

# /clean_output/
    - The files are the (hand) cleaned treatment effects calculated by
    code_bernauer_mcgrath_ncc2016.do in the folder /code/. The original
    non-clean versions of these files are located in the folder /dirty_output/
    These files are used with the R script treat_clean_plot.R to 
    create the file of treatment effects effects.RData located in the folder
    /effects/ which is used to plot the treatment effects in the paper (figure 3)

# /clean_output_dkna/
    - The files are the (hand) cleaned treatment effects calculated by
    code_bernauer_mcgrath_ncc2016.do in the folder /code/, correcting for the
    coding error in the original analysis misattributing don't know responses
    for belief in to anthropogenic climate change. These files are used
    with the R script treat_clean_plot_dkna.R to create the file of treatment effects effects_dkna.RData located in the folder /effects/ which is used to plot the treatment effects in the corrected supplementary information 
    document.

# /code/ 
    - Contains all the code necessary to reproduce the analyis and graphs of
    the paper and supplementary materials.
    - code_bernauer_mcgrath_ncc2016.do: conducts the balance tests,
    regression analysis displayed both in the main paper and the supplementary
    information. Requires the data file: NCC_bernauer_mcgrath.dta located in
    /data/
    - distribution_plots.R: creates the outcome distribution plots that
    are either displayed in the main text (figure 2) or in the supllementary
    information. Requires the data file: NCC_bernauer_mcgrath.dta located in
    /data/
    - effects_comparison.R: compares the treatment effects from the original
    analysis in the paper, to the analysis in the supplementary information
    that corrects for the miscoded don't know responses. Requires the files
    effects.RData and effects_dkna.RData located in /effects/
    - multiplot.R: code to plot multiple ggplot graphs together
    - treat_clean_plot_dkna.R: cleans, combines and plots treatment effects
    that have corrected the coding error. Requires the files in
    /clean_output_dkna/ and produces the file effects_dkna.RData located
    in /effects/
    - treat_clean_plot.R: cleans, combines and plots treatment effects
    in the paper. Requires the files in
    /clean_output/ and produces the file effects.RData located
    in /effects/
    
# /data/
    - NCC_bernauer_mcgrath.dta: the replication data containing the results
    from both surveys

# /dirty_output/
    - The files are the outputted treatment effects calculated by
    code_bernauer_mcgrath_ncc2016.do. These are then hand cleaned
    so they can be read into R. The hand cleaned versions of these files
    are located in /clean_output/


# /dirty_output_dkna/
    - The files are the outputted treatment effects calculated by
    code_bernauer_mcgrath_ncc2016.do correcting for the don't know coding
    error. These are then hand cleaned so they can be read into R. 
    The hand cleaned versions of these files
    are located in /clean_output_dkna/

# /effects/
    - effects_dkna.RData combined and cleaned treatment effects generated
    by the R script treat_clean_plot_dkna.R
    - effects.RData combined and cleaned treatment effects generated
    by the R script treat_clean_plot.R







